home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / EMULATOR / GBDK_BIN / !GBDK / lib / h / global < prev    next >
Text File  |  1996-11-11  |  2KB  |  77 lines

  1.     .START    =    0x80
  2.     .SELECT    =    0x40
  3.     .B    =    0x20
  4.     .A    =    0x10
  5.     .DOWN    =    0x08
  6.     .UP    =    0x04
  7.     .LEFT    =    0x02
  8.     .RIGHT    =    0x01
  9.  
  10.     .SCREENWIDTH    =    0xA0
  11.     .SCREENHEIGHT    =    0x90
  12.     .MINWNDPOSX    =    0x07
  13.     .MINWNDPOSY    =    0x00
  14.     .MAXWNDPOSX    =    0xA5    ; Should be 0xA7, but it seems 0xA5 is the limit
  15.     .MAXWNDPOSY    =    0x8F
  16.  
  17.     .VBL_IFLAG    =    0x01
  18.     .LCD_IFLAG    =    0x02
  19.     .TIM_IFLAG    =    0x04
  20.     .SIO_IFLAG    =    0x08
  21.     .JOY_IFLAG    =    0x10
  22.  
  23.     .JOYPAD        =    0x00    ; Joystick: 1.1.P15.P14.P13.P12.P11.P10
  24.     .SIODATA    =    0x01    ; Serial IO data buffer
  25.     .SIOCONT    =    0x02    ; Serial IO control register
  26.     .DIVREG        =    0x04    ; Divider register (???)
  27.     .TIMECNT    =    0x05    ; Timer counter. Gen. int. when it overflows
  28.     .TIMEMOD    =    0x06    ; New value of TimeCount after it overflows
  29.     .TIMEFRQ    =    0x07    ; Timer frequency and start/stop switch
  30.     .IFLAGS        =    0x0F    ; Interrupt flags: 0.0.0.JST.SIO.TIM.LCD.VBL
  31.     .ISWITCH    =    0xFF    ; Switches to enable/disable interrupts
  32.     .LCDCONT    =    0x40    ; LCD control register
  33.     .LCDSTAT    =    0x41    ; LCD status register
  34.     .SCROLLY    =    0x42    ; Starting Y position of the background
  35.     .SCROLLX    =    0x43    ; Starting X position of the background
  36.     .CURLINE    =    0x44    ; Current screen line being scanned
  37.     .CMPLINE    =    0x45    ; Gen. int. when scan reaches this line
  38.     .DMA        =    0x46    ; DMA transfer
  39.     .BGRDPAL    =    0x47    ; Background palette
  40.     .SPR0PAL    =    0x48    ; Sprite palette #0
  41.     .SPR1PAL    =    0x49    ; Sprite palette #1
  42.     .WNDPOSY    =    0x4A    ; Window Y position
  43.     .WNDPOSX    =    0x4B    ; Window X position
  44.  
  45.     .G_MODE        =    0x01
  46.     .T_MODE        =    0x02
  47.  
  48.     .MODE_TABLE    =    0x01E0
  49.  
  50.     .globl    .OAM
  51.     .globl    .mode
  52.  
  53.     .globl    .set_mode
  54.     .globl    .padup
  55.     .globl    .jpad
  56.     .globl    .wait_pad
  57.     .globl    .wait_vbl
  58.     .globl    .delay_ns
  59.     .globl    .delay_ms
  60.     .globl    .white
  61.     .globl    .black
  62.     .globl    .std_pal
  63.     .globl    .init_tiles
  64.     .globl    .mv_tiles
  65.     .globl    .init_btt
  66.     .globl    .set_btt
  67.     .globl    .set_xy_btt
  68.     .globl    .get_xy_btt
  69.     .globl    .init_wtt
  70.     .globl    .set_wtt
  71.     .globl    .set_xy_wtt
  72.     .globl    .get_xy_wtt
  73.     .globl    .mv_sprite
  74.     .globl    .set_sprite
  75.     .globl    .prop_sprite
  76.     .globl    .refresh_OAM
  77.